/**********************************************************
 * CreditCardType.java
 * Created by ankur
 * Last modified Date: Sep 10, 2008 9:03:13 AM by ankur
 * Version : 0.1
 * Copyright (c) 2008 - 2008 cyberThink Infotech Pvt. Ltd., All rights reserved.
 **********************************************************/

package com.printeverywhere.dto;

import java.util.HashSet;
import java.util.Set;

/**
 * The Class CreditCardType.
 */

public class CreditCardType  implements java.io.Serializable {

    // Fields    

     /** The id. */
    private Integer id;
     
     /** The type. */
     private String type;
     
     /** The creditcards. */
     private Set creditcards = new HashSet(0);

    // Constructors

    /**
     * Instantiates a new credit card type.
     */
    public CreditCardType() { }

	/**
	 * Instantiates a new credit card type.
	 * 
	 * @param id the id
	 * @param type the type
	 */
    public CreditCardType(Integer id, String type) {
        this.id = id;
        this.type = type;
    }
    
    /**
     * Instantiates a new credit card type.
     * 
     * @param id the id
     * @param type the type
     * @param creditcards the creditcards
     */
    public CreditCardType(Integer id, String type, Set creditcards) {
        this.id = id;
        this.type = type;
        this.creditcards = creditcards;
    }

    // Property accessors

    /**
     * Gets the id.
     * 
     * @return the id
     */
    public Integer getId() {
        return this.id;
    }
    
    /**
     * Sets the id.
     * 
     * @param id the new id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets the type.
     * 
     * @return the type
     */
    public String getType() {
        return this.type;
    }
    
    /**
     * Sets the type.
     * 
     * @param type the new type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * Gets the creditcards.
     * 
     * @return the creditcards
     */
    public Set getCreditcards() {
        return this.creditcards;
    }
    
    /**
     * Sets the creditcards.
     * 
     * @param creditcards the new creditcards
     */
    public void setCreditcards(Set creditcards) {
        this.creditcards = creditcards;
    }
}